import static org.junit.Assert.*;

//import org.junit.After;
import org.junit.Before;
//import org.junit.Ignore;
import org.junit.Test;



public class JUnitTests 
{
	Player player1 = new Player();
	Player player2 = new Player();
	Deck deck = new Deck();
	@Before 
	public void setUp()
	{
		player1.actualHand.addCard(new Card("C",Rank.ACE));
		player1.actualHand.addCard(new Card("D",Rank.THREE));
		player1.actualHand.addCard(new Card("H",Rank.ACE));
		player1.actualHand.addCard(new Card("C",Rank.TWO));
		
		player2.actualHand.addCard(new Card("D",Rank.TEN));
		player2.actualHand.addCard(new Card("D",Rank.FOUR));
		player2.actualHand.addCard(new Card("H",Rank.TEN));
		player2.actualHand.addCard(new Card("H",Rank.THREE));
	}
	@Test
	public void numberOfCardsTest()
	{
		assertEquals(RankOfHands.numberOfCards(player1.actualHand).hand.size() , 3 );
		assertEquals(RankOfHands.numberOfCards(player2.actualHand).hand.size() , 2 );
	}
	@Test
	public void compareTwoPlayersTest()
	{
		assertEquals(1, RankOfHands.compareTwoPlayers(player1, player2) );
	}
	
}
